Conditions | 2 |
Total Lines | 13 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import execa from 'execa' |
||
12 | install = async (): Promise<boolean> => { |
||
13 | if (await this.isInstalled()) { |
||
14 | warning(`${this.name} already is installed. Execute it by running ${this.alias}`) |
||
15 | return false |
||
16 | } |
||
17 | |||
18 | info(`Installing ${this.name} using Composer...`) |
||
19 | |||
20 | await execa('composer', ['global', 'require', 'beyondcode/expose']) |
||
21 | |||
22 | success(`Successfully installed ${this.name}.`) |
||
23 | |||
24 | return true |
||
25 | } |
||
55 | export default Expose |